package org.smart.framework.core.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lyric
 * @version 1.0.0
 * @date 2017/2/9 10:57
 * @description 返回视图对象
 */
public class View {

    /** 视图路径 */
    private String path;

    /** 模型数据 */
    private Map<String, Object> model;

    /**
     * @author lyric
     * @description 带参构造函数
     * @param path 视图路径
     */
    public View(String path) {
        this.path = path;
        model = new HashMap<String, Object>();
    }

    /**
     * @author lyric
     * @description 获得视图路径
     * @return
     */
    public String getPath() {
        return path;
    }

    /**
     * @author lyric
     * @description 获得模型数据
     * @return
     */
    public Map<String, Object> getModel() {
        return model;
    }
}
